package com.dreamcar.auction.entity;

import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

/**
 * BrakeDisc entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "brake_disc", catalog = "assignment")
@DiscriminatorValue("D")
@PrimaryKeyJoinColumn(name="id_brake_disc")
public class BrakeDisc extends Component implements java.io.Serializable {

	// Fields

	private Integer idBrakeDisc;
	private String model;

	// Constructors

	/** default constructor */
	public BrakeDisc() {
	}

	/** minimal constructor */
	public BrakeDisc(Integer idBrakeDisc) {
		this.idBrakeDisc = idBrakeDisc;
	}

	/** full constructor */
	public BrakeDisc(Integer idBrakeDisc, String model) {
		this.idBrakeDisc = idBrakeDisc;
		this.model = model;
	}

	// Property accessors
	@Id
	@Column(name = "id_brake_disc", unique = true, nullable = false)
	public Integer getIdBrakeDisc() {
		return this.idBrakeDisc;
	}

	public void setIdBrakeDisc(Integer idBrakeDisc) {
		this.idBrakeDisc = idBrakeDisc;
	}


	@Column(name = "model", length = 45)
	public String getModel() {
		return this.model;
	}

	public void setModel(String model) {
		this.model = model;
	}

}